package com.landtool.Elasticsearch;

import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import org.springframework.data.elasticsearch.annotations.GeoPointField;
import org.springframework.data.elasticsearch.core.geo.GeoPoint;

//@Document(indexName = "radar",shards = 1, replicas = 0)
public class TgRadarMove {

    private String id;

    @Field(type = FieldType.Double)
    private Double aislength;

    @Field(type = FieldType.Double)
    private Double direction;

    @Field(type = FieldType.Double)
    private Double length;

    @Field(type = FieldType.Double)
    private Double maxlength;

    @Field(type = FieldType.Integer)
    private Integer mmsi;

    @Field(type = FieldType.Double)
    private Double quality;

    @Field(type = FieldType.Keyword)
    private Integer radarids;

    @Field(type = FieldType.Keyword)
    private String ship_belong;

    @Field(type = FieldType.Integer)
    private Short ship_class;

    @Field(type = FieldType.Double)
    private Double speed;

    @Field(type = FieldType.Long)
    private Long target_id;

   @Field(type = FieldType.Text)
    private String target_name;

    @Field(type = FieldType.Date)
    private Long timestamp;

    @Field(type = FieldType.Text)
    private String nationality;

    @Field(type = FieldType.Text)
    private String shiptype;

    @Field(type = FieldType.Double)
    private Double wide;

    @Field(type = FieldType.Text)
    private String aisreceiver;

    @Field(type = FieldType.Text)
    private String imo;

    @Field(type = FieldType.Text)
    private String callsign;

    @Field(type = FieldType.Text)
    private String course;

    @Field(type = FieldType.Text)
    private Integer displayid;

    @Field(type = FieldType.Double)
    private Double duration; //持续时间，分钟

    @GeoPointField
    private GeoPoint geometry;


    public Double getDuration() {
        return duration;
    }

    public void setDuration(Double duration) {
        this.duration = duration;
    }


    public Integer getRadarids() {
        return radarids;
    }

    public void setRadarids(Integer radarids) {
        this.radarids = radarids;
    }

    public String getNationality() {
        return nationality;
    }

    public void setNationality(String nationality) {
        this.nationality = nationality;
    }

    public String getShiptype() {
        return shiptype;
    }

    public void setShiptype(String shiptype) {
        this.shiptype = shiptype;
    }

    public Double getWide() {
        return wide;
    }

    public void setWide(Double wide) {
        this.wide = wide;
    }

    public String getAisreceiver() {
        return aisreceiver;
    }

    public void setAisreceiver(String aisreceiver) {
        this.aisreceiver = aisreceiver;
    }

    public String getImo() {
        return imo;
    }

    public void setImo(String imo) {
        this.imo = imo;
    }

    public String getCallsign() {
        return callsign;
    }

    public void setCallsign(String callsign) {
        this.callsign = callsign;
    }

    public String getCourse() {
        return course;
    }

    public void setCourse(String course) {
        this.course = course;
    }

    public Integer getDisplayid() {
        return displayid;
    }

    public void setDisplayid(Integer displayid) {
        this.displayid = displayid;
    }


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Double getAislength() {
        return aislength;
    }

    public void setAislength(Double aislength) {
        this.aislength = aislength;
    }

    public Double getDirection() {
        return direction;
    }

    public void setDirection(Double direction) {
        this.direction = direction;
    }

    public Double getLength() {
        return length;
    }

    public void setLength(Double length) {
        this.length = length;
    }

    public Double getMaxlength() {
        return maxlength;
    }

    public void setMaxlength(Double maxlength) {
        this.maxlength = maxlength;
    }

    public Integer getMmsi() {
        return mmsi;
    }

    public void setMmsi(Integer mmsi) {
        this.mmsi = mmsi;
    }

    public Double getQuality() {
        return quality;
    }

    public void setQuality(Double quality) {
        this.quality = quality;
    }

    public String getShip_belong() {
        return ship_belong;
    }

    public void setShip_belong(String ship_belong) {
        this.ship_belong = ship_belong;
    }

    public Short getShip_class() {
        return ship_class;
    }

    public void setShip_class(Short ship_class) {
        this.ship_class = ship_class;
    }

    public Double getSpeed() {
        return speed;
    }

    public void setSpeed(Double speed) {
        this.speed = speed;
    }

    public Long getTarget_id() {
        return target_id;
    }

    public void setTarget_id(Long target_id) {
        this.target_id = target_id;
    }

    public String getTarget_name() {
        return target_name;
    }

    public void setTarget_name(String target_name) {
        this.target_name = target_name;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public GeoPoint getGeometry() {
        return geometry;
    }

    public void setGeometry(GeoPoint geometry) {
        this.geometry = geometry;
    }
}
